const { Controller } = require('egg');

class CommonController extends Controller {
	async index() {

	}
	async test() {

	}
	async upload() {
		let file = this.ctx.request.files[0]
		let path = file.filepath
		let name = file.filename
		await this.ctx.service.commonService.upload(name, path)
	}
}

module.exports = CommonController;
